package com.wx.JerseySpring.service.impl;

import com.wx.JerseySpring.Dao.UserMapperDao;
import com.wx.JerseySpring.entity.User;
import com.wx.JerseySpring.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2016/11/16.
 */
@Service("userService")
public class UserServiceImpl implements UserService{

    @Resource
    private UserMapperDao userMapperDao;

    /**
     * 获取到所有的用户信息
     *
     * @return
     */
    @Override
    public List<User> getAllUser() {
        return userMapperDao.getAllUser();
    }
}
